int xchg(int *table, int *new) { int temp; temp = *table; *table = *new; *new = temp; return *table; }